package cn.itrip.mapper.itripHotelOrder;
import cn.itrip.beans.pojo.ItripHotelOrder;
import cn.itrip.beans.pojo.ItripHotelTempStore;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

public interface ItripHotelOrderMapper {

	public ItripHotelOrder getItripHotelOrderById(@Param(value = "id") Long id)throws Exception;

	public List<ItripHotelOrder>	getItripHotelOrderListByMap(Map<String,Object> param)throws Exception;

	public Integer getItripHotelOrderCountByMap(Map<String,Object> param)throws Exception;

	public Integer insertItripHotelOrder(ItripHotelOrder itripHotelOrder)throws Exception;

	public Integer updateItripHotelOrder(ItripHotelOrder itripHotelOrder)throws Exception;

	public Integer deleteItripHotelOrderById(@Param(value = "id") Long id)throws Exception;



	/**
	 * 调用存储过程更新实时库存表数据
	 * @param params
	 */
	public void flushStore(Map<String,Object> params);

	/**
	 * 指定时间内酒店房型  对应库存数据
	 * @param params
	 * @return
	 */
	public List<ItripHotelTempStore> queryRoomStore(Map<String,Object> params);


	public Integer cancelOrderTimeOut();


	public void changOrdertoCommit();


	public void flushTempStore(Map map);
}
